package cn.ecnu.pojo.recommend;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@TableName(value = "recommend_job")
/*内推官-职位详情*/
public class RecommendJob {

    @TableId(value = "user_id")
    @NotNull(message = "userId不能为空")
    private Integer userId;

    @NotEmpty(message = "岗位名称不能为空")
    private String recPosition;

    @NotEmpty(message = "所在行业不能为空")
    private String recIndustry;

    @NotEmpty(message = "所在地不能为空")
    private String recJobLocation;

    private Integer recSalary;
    private String recJobType;

    @Size(max = 255, message = "长度超出限制")
    private String recDetail;
}
